package com.macro.mall.admin.code.error;

import com.macro.mall.common.code.error.IErrorCode;

/**
 * 定义admin服务错误码
 * Created by macro on 2019/4/19.
 */
public enum AdminBizErrorCode implements IErrorCode {

    XXX_FAILED(404, "XXX失败");

    private long code;
    private String message;

    AdminBizErrorCode(long code, String message) {
        this.code = code;
        this.message = message;
    }

    public long getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
